<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.ffcs.security.model.RoleRelaResource" table="T_SECU_ROLE_RELA_RESOURCE">
        <id name="id" type="java.lang.Integer">
            <column name="id" />
            <generator  class="cn.ffcs.util.hibernate.generator.MyGenerator">
				<param name="table">T_COMM_SEQUENCE</param>
				<param name="column">NEXT_VAL</param>
				<param name="sequence_column">NAME</param>
				<param name="sequence_name">S_SECU_ROLE_RELA_RESOURCE</param>
			</generator>
        </id>
        <many-to-one name="role" column="secu_role" class="cn.ffcs.security.model.Role" unique="true" lazy="false"/>
        <many-to-one name="resource" column="secu_resource" class="cn.ffcs.security.model.Resource" unique="true" lazy="false"/>
        <property name="creator" type="java.lang.String">
            <column name="creator" length="32" not-null="true" />
        </property>
        <property name="begin" type="timestamp">
            <column name="begin" length="32" not-null="true" />
        </property>
        <property name="end" type="timestamp">
            <column name="end" length="32" not-null="true" />
        </property>
    </class>
</hibernate-mapping>